val mainLocal = ThreadLocal<String>()
val threadLocal = ThreadLocal<String>()

fun test() {
    println(threadLocal.get())
}

fun main() {
    mainLocal.set("main")

    Thread {
        threadLocal.set("thread")
        test()
    }.start()

    println(mainLocal.get())

}